<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<title>网银支付</title>
	<link rel="stylesheet" href="Public/weui/weui.min.css">

	<link rel="stylesheet" href="Public/weui/base.css">

	<style>
		.bd {
			padding-bottom: 65px;
		}
		.weui-cells {
			font-size: 14px;
		}
		.mg_l10 {
			margin-left: 10px;
		}
		i, em {
			font-style: normal;
		}
		.color_org {
			color: #f1511e!important;
		}
		.color_red {
			color: #d81c00!important;
		}
		.weui-label {
		    display: block;
		    width: 135px;
		    word-wrap: break-word;
		    word-break: break-all;
		}
	</style>
</head>
<body>
	<div class="wrap">
		<div class="bd">
			<div class="weui-cells__title" style="margin-top: 100px;"></div>
			<div style="max-width:800px;margin: auto;background-color: #fff; ">
					<div class="weui-cell">
						<div class="tit">
							<p><h2>网银支付</h2></p>
							<p><span class="t-name">订单号：<i class="mg_l10"><{$orderid}></i></span></p>
							<p><span class="t-name">支付金额:<em class="mg_l10 color_org">￥<{$money}>元</em></span></p>
						</div>
					</div>
			</div>
			<div style="max-width:800px;max-height:800px; margin: auto;background-color: #fff; ">
				<form id="payOrder" method="post" action="<{$rpay_url}>">
		      		<div class="weui-cells" >


		      			<div class="weui-cell">
							<div class="weui-cell__hd"><label class="weui-label"><i class="color_red">*</i>银行：</label></div>
							<div class="weui-cell__bd">
								<select class="weui-select" name="bankCode">
									<foreach name="bank_array" item="item" key="key">	
			                        	<option value="<{$item}>"><{$key}></option>
			                        </foreach>
			                    </select>
							</div>
						</div>
					

						<div class="weui-cell">
							<div class="weui-cell__hd"><label class="weui-label"><i class="color_red">*</i>银行卡类型：</label></div>
							<div class="weui-cell__bd">
								<select class="weui-select" name="cardType">
									<foreach name="card_type_array" item="item" key="key">	
			                        	<option value="<{$item}>"><{$key}></option>
			                        </foreach>
			                    </select>
							</div>
						</div>

						<div class="weui-cell">
							<div class="weui-cell__hd"><label class="weui-label"><i class="color_red">*</i>银行卡号：</label></div>
							<div class="weui-cell__bd">
								<input type="text" class="weui-input" name="cardNo" placeholder="请输入银行卡号">
							</div>
						</div>

		      			<div class="weui-cell">
							<div class="weui-cell__hd"><label class="weui-label"><i class="color_red">*</i>手机号码：</label></div>
							<div class="weui-cell__bd">
								<input type="tel" class="weui-input" name="mobile" placeholder="请输入手机号码">
							</div>
						</div>

						<div class="weui-cell weui-cell_vcode">
							<div class="weui-cell__hd">
								<label class="weui-label"><i class="color_red">*</i>验证码：</label>
							</div>
							<div class="weui-cell__bd">
								<input class="weui-input" type="text" name="mobileCode" placeholder="请输入验证码">
							</div>
							<div class="weui-cell__ft">
								<button class="weui-vcode-btn" id="GetMobileCode">获取验证码</button>
							</div>
						</div>




					</div>
			
					<input type="hidden" name="encryp" value="<{$encryp}>">
					<input type="hidden" name="url" value="<{$url}>">
				</form>
				<div class="weui-btn-area">
		            <a class="weui-btn weui-btn_primary fz16" id="btnPay" href="javascript:">确定</a>
		        </div>
		        <br>
	        </div>
		</div>
	</div>
</body>
<script src="/Public/Front/js/jquery.min.js"></script>
<script src="/Public/weui/weui.min.js"></script>
<script>
	$('input[name="__hash__"]').remove();
	
$('#GetMobileCode').click(function(){



	var form_data = $('#payOrder').serialize();
	$.ajax({
		
		url:'<{$smscode_url}>',
		type:"post",
		data:form_data,
		success:function(res){
			console.log(res);
		},
		error:function(){

		}

	});

	return false;
});




	var isbtn=true;
$("#btnPay").on("click",function(){
   

    $('#payOrder').submit();
});

function ajaxContent(request_url,request_data){
    var return_contetn = 0;
    $.ajax({
        url: request_url,
        type: "post",
        async: false,
        data: request_data,
        success: function (res) {

            return_contetn = res; 
        },
        error:function(){
            return_contetn = 0;
        }
    });
    return return_contetn;
}
</script>
</html>
